package net.bw.realtime.jtp.service;

/*
 * @ Author：liuyawei
 * @ Date：2025/05/24
 * @ Description：关键字统计服务层
 */

import net.bw.realtime.jtp.bean.TrafficKeywordReport;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface TrafficKeywordStatsService {

    @Select("SELECT\n" +
            " keyword,\n" +
            " sum(keyword_count) AS keyword_count\n" +
            "FROM jtp_log_report.dws_traffic_search_keyword_window_report\n" +
            "WHERE toDate(window_start_time) = #{date}\n" +
            "GROUP BY keyword")
    List<TrafficKeywordReport> selectKeywordCount(String date);

}
